<!DOCTYPE html>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0 ,minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">

		<title>结算页面</title>

		<link href="${basePath!}/static/AmazeUI-2.4.2/assets/css/amazeui.css" rel="stylesheet" type="text/css" />

		<link href="${basePath!}/static/basic/css/demo.css" rel="stylesheet" type="text/css" />
		<link href="${basePath!}/static/css/cartstyle.css" rel="stylesheet" type="text/css" />

		<link href="${basePath!}/static/css/jsstyle.css" rel="stylesheet" type="text/css" />

		<script type="text/javascript" src="${basePath!}/static/js/address.js"></script>
		<script>
			document.onkeydown = function (e) {
	            var ev = window.event || e;
	            var code = ev.keyCode || ev.which;
	            if (code == 116) {
	                ev.keyCode ? ev.keyCode = 0 : ev.which = 0;
	                cancelBubble = true;
	                return false;
	            }
	        } //禁止f5刷新
			document.oncontextmenu=function(){return false};
			
			window.onbeforeunload = function() {   
	            var n = window.event.screenX - window.screenLeft;   
	            var b = n > document.documentElement.scrollWidth-20;   
	            if(b && window.event.clientY < 0 || window.event.altKey){   
	                alert("这是一个关闭操作而非刷新");
	            }else{
	                alert("这是一个刷新操作而非关闭");   
	            }
	        }
		</script>
	</head>

	<body>

		<!--顶部导航条 -->
		<div class="am-container header">
			<ul class="message-l">
				<div class="topMessage">
					<div class="menu-hd">
						<#if (userInfo)??>
							欢迎您,<a href="${basePath!}/shopping/personal/center/personalCenter.do" target="_top" class="h" style="color:red;">${userInfo.userName}</a>
						<#else>
							<a href="${basePath!}/login.do" target="_top" class="h">亲，请登录</a>
							<a href="#" target="_top">免费注册</a>
						</#if>
					</div>
				</div>
			</ul>
			<ul class="message-r">
				<div class="topMessage home">
					<div class="menu-hd"><a href="${basePath!}/index.do" target="_top" class="h">商城首页</a></div>
				</div>
				<div class="topMessage my-shangcheng">
					<div class="menu-hd MyShangcheng"><a href="${basePath!}/shopping/personal/center/personalCenter.do" target="_top"><i class="am-icon-user am-icon-fw"></i>个人中心</a></div>
				</div>
				<div class="topMessage mini-cart">
					<div class="menu-hd"><a id="mc-menu-hd" href="${basePath!}/shopping/personal/center/personalShopcart.do" target="_top"><i class="am-icon-shopping-cart  am-icon-fw"></i><span>购物车</span>(<strong class="h" style="color:red;">${shopcartGoodsCount}</strong>)</a></div>
				</div>
				<div class="topMessage favorite">
					<div class="menu-hd"><a href="${basePath!}/shopping/personal/center/personalCollection.do" target="_top"><i class="am-icon-heart am-icon-fw"></i><span>收藏夹</span></a></div>
			</ul>
			</div>

			<!--悬浮搜索框-->
			<div class="nav white">
				<div class="logoBig">
					<li><img src="http://p2s9wr3uo.bkt.clouddn.com/logobig.png" /></li>
				</div>

				<div class="search-bar pr">
					<a name="index_none_header_sysc" href="#"></a>
					<form action="${basePath!}/shopping/search/goods.do" method="get">
						<input id="searchInput" name="goodsName" type="text" placeholder="搜索" autocomplete="off">
						<input id="ai-topsearch" class="submit am-btn"  value="搜索" index="1" type="submit">
					</form>
				</div>
			</div>

			<div class="clear"></div>
			<div class="concent">
				<!--地址 -->
				<div class="paycont">
					<div class="address">
						<h3>确认收货地址 </h3>
						<div class="control">
							<a class="tc-btn createAddr theme-login am-btn am-btn-danger" href="${basePath!}/shopping/personal/center/personalAddress.do">使用新地址</a>
						</div>
						<div class="clear"></div>
						<ul>
							<#list userAddress! as address>
								<#if address.recentlyUse>
									<li class="user-addresslist defaultAddr">
										<div class="address-left">
											<div class="user DefaultAddr">
												<span class="buy-address-detail">   
			                   						<span class="buy-user">${address.takeUserName} </span>
													<span class="buy-phone">${address.takeUserPhone}</span>
												</span>
											</div>
											<div class="default-address DefaultAddr">
												<span class="buy-line-title buy-line-title-type">收货地址：</span>
												<span class="buy--address-detail">${address.province}&nbsp;${address.city}&nbsp;${address.district}&nbsp;${address.detailedAddress}</span>
											</div>
											<ins class="deftip">默认地址</ins>
										</div>
									</li>
								<#else>
									<li class="user-addresslist">
										<div class="address-left">
											<div class="user DefaultAddr">
												<span class="buy-address-detail">   
		                   							<span class="buy-user">${address.takeUserName} </span>
													<span class="buy-phone">${address.takeUserPhone}</span>
												</span>
											</div>
											<div class="default-address DefaultAddr">
												<span class="buy-line-title buy-line-title-type">收货地址：</span>
												<span class="buy--address-detail">${address.province}&nbsp;${address.city}&nbsp;${address.district}&nbsp;${address.detailedAddress}</span>
											</div>
										</div>
										<div class="clear"></div>
									</li>
								</#if>
							</#list>
						</ul>

						<div class="clear"></div>
					</div>
					
					<div class="clear"></div>
					<!--订单 -->
					<div class="concent">
						<div id="payTable">
							<h3>确认订单信息</h3>
							<div class="cart-table-th">
								<div class="wp">

									<div class="th th-item">
										<div class="td-inner">商品信息</div>
									</div>
									<div class="th th-price">
										<div class="td-inner">单价</div>
									</div>
									<div class="th th-amount">
										<div class="td-inner">数量</div>
									</div>
									<div class="th th-sum">
										<div class="td-inner">金额</div>
									</div>
								</div>
							</div>
							<div class="clear"></div>


							<#list shopcartList as item>
								<tr class="item-list">
									<div class="bundle  bundle-last">
										<div class="bundle-main">
											<ul class="item-content clearfix">
												<div class="pay-phone">
													<li class="td td-item">
														<div class="item-pic">
															<a href="${basePath!}/shopping/goods/introduction/goodsIntroduction.do?goodsId=${item.goodsIntroduction.id}" class="J_MakePoint">
																<img src="${item.goodsIntroduction.banner}" class="itempic J_ItemImg"></a>
														</div>
														<div class="item-info">
															<div class="item-basic-info">
																<a href="#" class="item-title J_MakePoint" data-point="tbcart.8.11">${item.goodsIntroduction.goodsName}</a>
															</div>
														</div>
													</li>
													<li class="td td-info">
														<div class="item-props">
															<#list item.goodsIntroduction.goodsAttributes as attrItem>
																<#list attrItem.attributes as attributeItem>
																	<#if attributeItem.defaultSelected>
																		<span class="sku-line">${attrItem.attributeType}：${attributeItem.name}</span>
																	</#if>
																</#list>
															</#list>
														</div>
													</li>
													<li class="td td-price">
														<div class="item-price price-promo-promo">
															<div class="price-content">
																<em class="J_Price price-now"><b>¥</b>${(item.goodsIntroduction.promotionUnitPrice/100)?string('#.##')}</em>
															</div>
														</div>
													</li>
												</div>
												<li class="td td-amount">
													<div class="amount-wrapper ">
														<div class="item-amount ">
															<span class="phone-title">购买数量</span>
															<div class="sl">
																<input class="min am-btn" name="" type="button" value="-" />
																<input class="text_box" name="" type="text" value="${item.quantity}" style="width:30px;" />
																<input class="add am-btn" name="" type="button" value="+" />
															</div>
														</div>
													</div>
												</li>
												<li class="td td-sum">
													<div class="td-inner">
														<em tabindex="0" class="J_ItemSum number">${((item.quantity* item.goodsIntroduction.promotionUnitPrice)/100)?string('#.##')}</em>
													</div>
												</li>
											</ul>
											<div class="clear"></div>
										</div>
										
										<div class="pay-total">
										<!--留言-->
										<div class="order-extra">
											<div class="order-user-info">
												<div id="holyshit257" class="memo">
													<label>买家留言：</label>
													<input type="text" title="选填,对本次交易的说明（建议填写已经和卖家达成一致的说明）" placeholder="选填,建议填写和卖家达成一致的说明" class="memo-input J_MakePoint c2c-text-default memo-close">
													<div class="msg hidden J-msg">
														<p class="error">最多输入500个字符</p>
													</div>
												</div>
											</div>
										</div>
										<div class="clear"></div>
								</tr>
							
							</#list>

							
							<div class="clear"></div>
							<!--含运费小计 -->
							<div class="buy-point-discharge ">
								<p class="price g_price ">
									合计（含运费） <span>¥</span><em class="pay-sum">${(selectedGoodsPrice/100)?string('#.##')}</em>
								</p>
							</div>

							<!--信息 -->
							<div class="order-go clearfix">
								<div class="pay-confirm clearfix">
									<div class="box">
										<div tabindex="0" id="holyshit267" class="realPay"><em class="t">实付款：</em>
											<span class="price g_price ">
                                    <span>¥</span> <em class="style-large-bold-red " id="J_ActualFee">${(selectedGoodsPrice/100)?string('#.##')}</em>
											</span>
										</div>


										<#list userAddress! as address>
											<#if address.recentlyUse>
												<div id="holyshit268" class="pay-address">
													<p class="buy-footer-address">
														<span class="buy-line-title buy-line-title-type">寄送至：</span>
														<span class="buy--address-detail">
														<span class="street">${address.province}&nbsp;${address.city}&nbsp;${address.district}&nbsp;${address.detailedAddress}</span>
														</span>
														</span>
													</p>
													<p class="buy-footer-address">
														<span class="buy-line-title">收货人：</span>
														<span class="buy-address-detail">   
		                                         		<span class="buy-user">${address.takeUserName} </span>
														<span class="buy-phone">${address.takeUserPhone}</span>
														</span>
													</p>
												</div>
											</#if>
										</#list>
									</div>

									<div id="holyshit269" class="submitOrder">
										<div class="go-btn-wrap">
											<a id="J_Go" href="${basePath!}/shopping/personal/center/personalOrderPay.do?snapshotId=${snapshotId}" class="btn-go" tabindex="0" title="点击此按钮，提交订单">支付订单</a>
										</div>
									</div>
									<div class="clear"></div>
								</div>
							</div>
						</div>

						<div class="clear"></div>
					</div>
				</div>
				${copyrightStatement}
			</div>
			<div class="clear"></div>
	</body>

</html>